package com.kg.module.jtnc.rghs.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kg.core.base.model.BaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 人工核算表
 * </p>
 *
 * @author xxx
 * @since 2024-11-02
 */
@Getter
@Setter
@TableName("kr_rghs")
@ApiModel(value = "KrRghs对象", description = "人工核算表")
public class KrRghs implements BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "rghs_id", type = IdType.ASSIGN_UUID)
    private String rghsId;

    @ApiModelProperty("种植计划ID")
    @TableField(value = "zzjh_id")
    private String zzjhId;

    @ApiModelProperty("地块id")
    @TableField("dkgl_id")
    private String dkglId;

    @ApiModelProperty("地块名称")
    @TableField("dkmc")
    private String dkmc;

    @ApiModelProperty("农户id")
    @TableField("nh_id")
    private String nhId;

    @ApiModelProperty("农户姓名")
    @TableField("nhxm")
    private String nhxm;

    @ApiModelProperty("用工日期")
    @TableField("ygrq")
    private String ygrq;

    @ApiModelProperty("用工人数")
    @TableField("ygrs")
    private String ygrs;

    @ApiModelProperty("用工时长")
    @TableField("ygsc")
    private String ygsc;

    @ApiModelProperty("用工费用")
    @TableField("ygfy")
    private String ygfy;

    @ApiModelProperty("用工内容")
    @TableField("ygnr")
    private String ygnr;

    @ApiModelProperty("添加时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty("技术员id")
    @TableField("jsy_id")
    private String jsyId;

    @ApiModelProperty("技术员姓名")
    @TableField("jsyxm")
    private String jsyxm;

    @ApiModelProperty("核算状态（0：待确认，1:已确认，2:已拒绝）")
    @TableField("state")
    private String state;
}
